<template>
<div>
    <vleft></vleft>
    <vright :right="rightData"></vright>
</div>
</template>
<script>
import vleft from "./left";
import vright from "./right"
export default {
  components: {
        vleft,
        vright
  },
  data(){
      return {
        rightData:[]
      }
  },
  methods: { 
      res(){
         this.$http({
				method:"get",
				url:"http://h5.yztctech.net/api/axf/apicategory.php",
				params:{
					"category":"牛奶面包"
				}
			}).then(function(res){
				console.log(res)
				this.rightData = JSON.parse(res.data).data;
				// console.log(this.list)
			});
      }
  },
  mounted(){
    this.res();
  }
}
</script>

<style>

</style>
